# Set this to the root of your project when deployed:
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
# ルートパス
http_generated_images_path = "/shared/images"
javascripts_dir = "js"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :compressed

# chrome debug
# sass_options = { :debug_info => true }

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false

# cache
cache = false

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

# Make a copy of sprites with a name that has no uniqueness of the hash.
on_sprite_saved do |filename|
	if File.exists?(filename)
		FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png')
	end
end

# Replace in stylesheets generated references to sprites
# by their counterparts without the hash uniqueness.
on_stylesheet_saved do |filename|
	if File.exists?(filename)
		css = File.read filename
		File.open(filename, 'w+') do |f|
			f << css.gsub(%r{-s[a-z0-9]{10}\.png}, '.png')
		end
	end
end

# 変数出力のカラーコードを色名にしない（色も短縮）
module Sass::Script
	class Color
		def to_s(opts = {})
			return rgba_str if alpha?
			return smallest# if options[:style] == :compressed
			#return COLOR_NAMES_REVERSE[rgb] if COLOR_NAMES_REVERSE[rgb]
			hex_str
		end
	end
end

